-- GENERATED SPELL FOR [Irespeaker] --


function spell0_24999(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(18267,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24999', 30309, 1)
end

function spell1_24999(pUnit, Event) --@Fel Fireball,n/a--
pUnit:FullCastSpellOnTarget(35913,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24999', 3000, 1)
end

function Sorts_24999(pUnit, Event)
local choix_sorts_24999 = math.random(0, 1)
if choix_sorts_24999 == 0 then
pUnit:RegisterEvent('spell0_24999', 1, 1)
end
if choix_sorts_24999 == 1 then
pUnit:RegisterEvent('spell1_24999', 1, 1)
end
end

function mob24999_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24999', math.random(1500, 3000), 1)
end

function mob24999_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24999_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24999_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24999, 1, 'mob24999_Action')
RegisterUnitEvent(24999, 2, 'mob24999_Leave')
RegisterUnitEvent(24999, 3, 'mob24999_Kill')
RegisterUnitEvent(24999, 4, 'mob24999_Die')
